package com.george.es.book.config.web;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/9/4 15:17
 * @version 1.0
 * @since jdk1.8
 */
//@Configuration
//@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {

    /**
     * addResourceLocations指的是文件放置的目录，addResoureHandler指的是对外暴露的访问路径
     * @param registry
//     */
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/*").addResourceLocations("classpath:/static/");
//        registry.addResourceHandler("/templates/*").addResourceLocations("classpath:/templates/");
//        registry.addResourceHandler("/pages/*").addResourceLocations("classpath:/pages/");
//        registry.addResourceHandler("/cms/broadcasts/*").addResourceLocations("file:D:\\static\\");
//    }
}
